C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(44223) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(44225) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(44227) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(44228) : error 021: symbol already defined: "OnPlayerCommandText"
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(44229) : error 010: invalid function or declaration
C:\Documents and Settings\Wallace\Desktop\GM BVS\gamemodes\Wallace.pwn(44233) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
if(IsPlayerConnected(playerid);//44223
{
if(newkeys == KEY_SECONDARY_ATTACK)//44225
{
if(PlayerToPoint(2.0, playerid, 2519.0090,-1679.0851,14.6400)){ //44227
OnPlayerCommandText(playerid,"/equiparg"); //44228
return 1;//44229
}
}
}
return 1;//44233
}
if(newkeys == KEY_SECONDARY_ATTACK)//44225
{
if(PlayerToPoint(2.0, playerid, 2519.0090,-1679.0851,14.6400))
{ //44227
OnPlayerCommandText(playerid,"/equiparg"); //44228
return 1;//44229
}
return true;
}
return 1;//44233
}
if(IsPlayerConnected(playerid)
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(2.0, playerid, 2519.0090,-1679.0851,14.6400))
{
OnPlayerCommandText(playerid,"/equiparg");
return 1;
}
}
return 1;
}
pawn Код:
|
if(IsPlayerConnected(playerid)) // ) pra fechar playerid ) pra fechar o if
{
if(newkeys == KEY_SECONDARY_ATTACK)
{
if(PlayerToPoint(2.0, playerid, 2519.0090,-1679.0851,14.6400))
{
OnPlayerCommandText(playerid,"/equiparg");
return 1;
}
}
return 1;
}
Seu cуdigo tambйm faltou parentese no IsPlayerConnected...
Nгo tem lуgica usar IsPlayerConnected(playerid) se o cara й o playerid ele estб conectado |