15.07.2018, 19:40
Hey guys im trying to make a command but dont work for me its the /accent [accent] [text] , i want save it on the enum pAccent
I got this:
what am i missing?
I got this:
PHP код:
CMD:accent(playerid, params[])
{
if(strlen(cmdtext) < 9)
return SendClientMessage(playerid, 0xFFFFFFFF, "USAGE /accent [Accent]");
new string[60];
SetPVarString(playerid, "Accent", cmdtext[8]);
format(string, 60, "You have set your accent to %s.", cmdtext[8]);
SendClientMessage(playerid, 0x33CCFFAA, string);
return 1;
}
Код:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2684) : warning 217: loose indentation C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2866) : error 017: undefined symbol "cmdtext" C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2869) : error 017: undefined symbol "cmdtext" C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2869) : warning 215: expression has no effect C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2869) : error 001: expected token: ";", but found "]" C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2869) : error 029: invalid expression, assumed zero C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(2869) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.