11.09.2012, 17:06
im having a problem with my roadblock system
this is the first time ever its happened ( i always use this )
this is the first time ever its happened ( i always use this )
PHP код:
sscanf warning Format Specifier Does Not Match Parameter Count
sscanf warning Unknown format
pawn Код:
CMD:roadblock(playerid, params[])// road block command
{
if(sscanf(params, "s[100]", params))
{
SendClientMessage(playerid, -1, "Usage: /roadblock [ID]");
return 1;
}
if (PlayerInfo[playerid][pFaction] >=0){
if(sscanf(params, "1", params)){
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(playerid,1422, X, Y, Z, 30, 0 );
}
else if(sscanf(params, "2", params)){
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(playerid, 1423, X, Y, Z, 30, 0 );
}
else if(sscanf(params, "3", params)){
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(playerid, 1424, X, Y, Z, 30, 0 );
}
else if(sscanf(params, "4", params)){
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(playerid, 1425, X, Y, Z, 30, 0 );
}
else if(sscanf(params, "5", params)){
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(playerid, 1427, X, Y, Z, 30, 0 );
}
else if(sscanf(params, "6", params)){
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
CreateObject(playerid, 1434, X, Y, Z, 30, 0 );
}
}
return 1;
}