Jump to content
View in the app

A better way to browse. Learn more.

GTAGames.nl - De Nederlandse Grand Theft Auto Community!

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

/commands en /help

Dank je wel is nu toppie :D

Edited by Twinsen

Featured Replies

if(strcmp(cmdtext, "/help", true)==0)
{
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
return 1;
}

if(strcmp(cmdtext, "/commands", true)==0)
{
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
return 1;
}

Edited by Sandra18[NL]

  • Author

if(strcmp(cmdtext, "/help", true)==0)
{
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
return 1;
}

if(strcmp(cmdtext, "/commands", true)==0)
{
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
return 1;
}

Dank je wel sandra, ik ga het meteen proberen :puh:

  • Author

if(strcmp(cmdtext, "/help", true)==0)
{
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
return 1;
}

if(strcmp(cmdtext, "/commands", true)==0)
{
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
SendClientMessage(playerid, KLEUR, "tekst");
return 1;
}

Dank je wel sandra, ik ga het meteen proberen :puh:

hij geeft dit aan:

C:\Documents and Settings\Remi Koek\Bureaublad\The A-team rpg\pawno\THE_A-TEAM_SCRIPT.pwn(612) : error 010: invalid function or declaration

C:\Documents and Settings\Remi Koek\Bureaublad\The A-team rpg\pawno\THE_A-TEAM_SCRIPT.pwn(617) : error 010: invalid function or declaration

C:\Documents and Settings\Remi Koek\Bureaublad\The A-team rpg\pawno\THE_A-TEAM_SCRIPT.pwn(620) : error 010: invalid function or declaration

C:\Documents and Settings\Remi Koek\Bureaublad\The A-team rpg\pawno\THE_A-TEAM_SCRIPT.pwn(625) : error 010: invalid function or declaration

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 Errors.

wat nu??

Heb je de die commands wel bij OnPlayerCommandText staan?

  • Author

Heb je de die commands wel bij OnPlayerCommandText staan?

ja nu wel, ik ben nu een stuk verder maar ik heb nog 1 warning:

C:\Documents and Settings\Remi Koek\Bureaublad\The A-team rpg\pawno\THE_A-TEAM_SCRIPT.pwn(633) : warning 217: loose indentation

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

bij het einde van het script:

public OnPlayerCommandText(playerid, cmdtext[]){

if(strcmp(cmdtext, "/help", true)==0)

{

SendClientMessage(playerid, COLOR_RED, "tekst");

SendClientMessage(playerid, COLOR_RED, "tekst");

SendClientMessage(playerid, COLOR_RED, "tekst");

return 1;

}

if(strcmp(cmdtext, "/commands", true)==0)

{

SendClientMessage(playerid, COLOR_RED, "tekst");

SendClientMessage(playerid, COLOR_RED, "tekst");

SendClientMessage(playerid, COLOR_RED, "tekst");

return 1;

}

return 0;

}

alvast bedankt !

loose indentation = de uitlijning van je script.

Sla na elke { een tab (of 4 spaties) over

en na elke } doe je weer een tab (of 4 spaties) terug:

Slecht:

public OnPlayerCommandText(playerid, cmdtext[])
 {
if(strcmp(cmdtext, "/help", true)==0)
	 { 
 SendClientMessage(playerid, COLOR_RED, "tekst");
  SendClientMessage(playerid, COLOR_RED, "tekst");
	 SendClientMessage(playerid, COLOR_RED, "tekst");
return 1;
}
   return 0;
}

Goed:

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/help", true)==0)
{ 
	SendClientMessage(playerid, COLOR_RED, "tekst");
	SendClientMessage(playerid, COLOR_RED, "tekst");
	SendClientMessage(playerid, COLOR_RED, "tekst");
	return 1;
}
return 0;
}

Als je dit lastig vindt, zet dan bovenaan je script:

#pragma tabsize 0

>>> Door Azer: Meh als je het te moeilijk vind om netjes je code uit te lijnen dan moet je geeneens proberen om te leren scripten ^^ <<<

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.