31.10.2010, 13:27
Okay I'm a noob at scripting, but when I made my second "my command" I had this warning
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(124) : warning 217: loose indentation
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(127) : warning 217: loose indentation
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(129) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
And my cmd was
Or just the whole my command lines
What could cause this warning?
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(124) : warning 217: loose indentation
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(127) : warning 217: loose indentation
C:\Documents and Settings\Дgaren\Skrivbord\SERVER\gamemodes\Hudgens .pwn(129) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
3 Warnings.
And my cmd was
Код:
} if (strcmp("/commands", cmdtext, true, 10) == 0) { SendClientMessage(playerid,COLOR_YELLOW, "/skatepark"); return 1; }
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/skatepark", cmdtext, true, 10) == 0) { SetPlayerPos(playerid,1893.8850,-1388.2507,13.5703); SendClientMessage(playerid, COLOR_BLACK , "Have fun in skatepark!"); // Do something here } if (strcmp("/commands", cmdtext, true, 10) == 0) { SendClientMessage(playerid,COLOR_YELLOW, "/skatepark"); return 1; } return 0;