5 errors
#1

command
Quote:

if(strcmp(cmd, "/me", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[96];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
return 1;
}
{
format(string, sizeof(string), "* %s %s", sendername, result);
}
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
}
return 1;
}
}

errors
Quote:

C:\Users\Mijn pc\Desktop\test one.pwn(91) : error 017: undefined symbol "cmd"
C:\Users\Mijn pc\Desktop\test one.pwn(95) : error 017: undefined symbol "sendername"
C:\Users\Mijn pc\Desktop\test one.pwn(95) : error 017: undefined symbol "sendername"
C:\Users\Mijn pc\Desktop\test one.pwn(95) : error 029: invalid expression, assumed zero
C:\Users\Mijn pc\Desktop\test one.pwn(95) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.

Reply


Messages In This Thread
5 errors - by davelord - 02.04.2011, 11:00
Re: 5 errors - by iJumbo - 02.04.2011, 11:12
Re: 5 errors - by Jeffry - 02.04.2011, 11:14
Re: 5 errors - by davelord - 02.04.2011, 11:15
Re: 5 errors - by Jeffry - 02.04.2011, 11:22

Forum Jump:


Users browsing this thread: 1 Guest(s)