21.06.2009, 14:45
Quote:
Originally Posted by Don Correlli
pawn Код:
|
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(413) : warning 217: loose indentation
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(409) : warning 203: symbol is never used: "idx"
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(40
![Cool](images/smilies/cool.gif)
C:\Documents and Settings\matt\Desktop\SAMP LEARNING\gamemodes\learning.pwn(408 -- 430) : warning 209: function "OnPlayerCommandText" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[MAX_STRING];
new tmp[MAX_STRING];
new idx;
cmd=strtok(text,idx);
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"welcome to NWO number 1 cops and robbers");
SendClientMessage(playerid,COLOR_YELLOW,"/commands to see full list of commands");
SendClientMessage(playerid,COLOR_YELLOW,"/serverinfo to see full admin list and server host");
return 1;
}
if (strcmp("/commands", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_YELLOW,"/police to see full list of police commands");
SendClientMessage(playerid,COLOR_YELLOW,"/rob to see full list of rob commands");
SendClientMessage(playerid,COLOR_YELLOW,"/medic to see full list of medic commands");
return 1;
}
}
i deleted all the other like /arrest i mad and that coz it was bringing more errors up but once i get this sorted the /heal command should be sorted aswell