28.12.2012, 16:38
Well.
It's not working since I have 3 errors:
It's not working since I have 3 errors:
Код:
C:\Users\USER\Documents\samp03e_svr_R2_win32\gamemodes\TestGM.pwn(129) : error 035: argument type mismatch (argument 1) C:\Users\USER\Documents\samp03e_svr_R2_win32\gamemodes\TestGM.pwn(133) : error 035: argument type mismatch (argument 1) C:\Users\USER\Documents\samp03e_svr_R2_win32\gamemodes\TestGM.pwn(137) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
PHP код:
CMD:givetag(playerid, params[])
{
new targetid; new text[128]; new color;
if(sscanf(params, "us[128]s",targetid, text, color)) return SendClientMessage(playerid, COLOR_ORANGE, "Usage: /givetag (ID) (Text) (Color) ");
if(strcmp(color, "green", true) == 0)
{
SetPlayerChatBubble(targetid, text, COLOR_GREEN, 100.0, 600000);
}
else if(strcmp(color, "blue", true) == 0)
{
SetPlayerChatBubble(targetid, text, COLOR_BLUE, 100.0, 600000);
}
else if(strcmp(color, "gold", true) == 0)
{
SetPlayerChatBubble(targetid, text, COLOR_GOLD, 100.0, 600000);
}
return 1;
}