01.08.2010, 16:30
I got a problem
Did everything right, i gues, put the include
and the code
but i keep getting this error while i try to compile it ( just started scripting, i think i'm with good brain... just dont figure this out )
Btw. It's translated to Estonian, as you can see, dont mind that ^^.
Did everything right, i gues, put the include
Код:
#include <zcmd>
Код:
CMD:es(playerid, params[]) { new str[256], str2[256], id, Name1[MAX_PLAYER_NAME], Name2[MAX_PLAYER_NAME]; if(sscanf(params, "us", id, str2)) { SendClientMessage(playerid, 0xFF0000FF, "Vihje: /es <id> <sхnum>"); return 1; } if(!IsPlayerConnected(id)) return SendClientMessage(playerid, 0xFF0000FF, "VIGA: Player not connected"); if(playerid != id) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You cannot pm yourself!"); { GetPlayerName(playerid, Name1, sizeof(Name1)); GetPlayerName(id, Name2, sizeof(Name2)); format(str, sizeof(str), "ES kasutajalt %s(ID %d): %s", Name2, id, str2); SendClientMessage(playerid, 0xFF0000FF, str); format(str, sizeof(str), "ES kasutajalt %s(ID %d): %s", Name1, playerid, str2); SendClientMessage(id, 0xFF0000FF, str); } return 1; }
Код:
C:\Documents and Settings\Owner\Desktop\BBRP GM\gamemodes\bbrp.pwn(51) : error 017: undefined symbol "sscanf" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.