19.02.2010, 13:27
i made some command that show some player a textdraw.
this is the command:
and i have this errors:
why its show me this errors?
tnx for helpers!
this is the command:
Код:
if(strcmp(cmd, "/cantsee", true) == 0) { new pName[24]; tmp = strtok(cmdtext,idx); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREY, "/CantSee [PlayerID] :цешъ щйоещ"); if(!IsPlayerConnected(tmp)) return SendClientMessage(playerid,red,"!аййгй щвей"); if(CantSee[tmp] == 1) { CantSee[tmp] = 0; TextDrawHideForPlayer(tmp, Textdraw6); TextDrawHideForPlayer(tmp, Textdraw7); GetPlayerName(playerid,pName,sizeof(pName)); format(string,128,".дзжйш мк аъ афщшеъ дшаййд %s дагойп",pName); SendClientMessage(tmp,lwhite,string); format(String, sizeof(String), ".аъ афщшеъ дшаййд %s дзжшъ мщзчп", tmp); SendClientMessage(playerid, lwhite, String); } else { CantSee[tmp] = 1; TextDrawShowForPlayer(tmp, Textdraw6); TextDrawShowForPlayer(tmp, Textdraw7); GetPlayerName(playerid,pName,sizeof(pName)); format(String,128,".дфсйч мк аъ дшаййд! лтъ аъд ма шеад лмен %s дагойп",pName); SendClientMessage(tmp,lwhite,String); format(String, sizeof(String), ".аъ афщшеъ дшаййд. лшвт дщзчп шеад оск щзеш %s дфсчъ мщзчп", tmp); SendClientMessage(playerid, lwhite, String); } return 1; }
Код:
C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3328) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3329) : error 033: array must be indexed (variable "tmp") C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3331) : error 033: array must be indexed (variable "tmp") C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3332) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3333) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3336) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3342) : error 033: array must be indexed (variable "tmp") C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3343) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3344) : error 035: argument type mismatch (argument 1) C:\Documents and Settings\user\щемзп дтбегд\Satla DeathMatch\gamemodes\Fear.PWN(3347) : error 035: argument type mismatch (argument 1) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 10 Errors.
tnx for helpers!