09.05.2014, 23:25
pawn Код:
COMMAND:name(playerid,params[]){
if(!Logged{playerid}) return 0;
if(!sscanf(params,"s",p1)){
if(p1 == "on"){}}return 1;}
COMMAND:name(playerid,params[]){
if(!Logged{playerid}) return 0;
if(!sscanf(params,"s",p1)){
if(p1 == "on"){}}return 1;}
COMMAND:name(playerid,params[]) { if(!Logged{playerid}) return 0; if(!sscanf(params,"s",p1)) { if(p1 == "on") { NOTHING HERE, THATS WHY YOU HAVE AN ERROR } } return 1; } |
COMMAND:name(playerid,params[])
{
if(!Logged{playerid}) return 0;
if(!sscanf(params,"s",p1))
{
if(p1 == "on")
{
// do something here?
}
}
return 1;
}
COMMAND:name(playerid, params[])
{
if(!Logged{playerid}) return 0;
if(isnull(params))
{
if(strcmp(params,"On",true) == 0)
{
// Do something..
}
}
return 1;
}