29.07.2011, 18:10
Hi.
At the beginning I would like to point out we English is bad, so sorry for mistakes.
How I can create this text?

And... How Can I convert this mod to the Zcmd:
I changed this code for Zcmd:
When converting jumped me this error:
C:\Documents and Settings\pc\Pulpit\Kopia gp - new.pwn(11802) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\pc\Pulpit\Kopia gp - new.pwn(11802) : error 017: undefined symbol "idx"
So I changed the cmd for params, but so are mistakes...
Very Thanks for help
At the beginning I would like to point out we English is bad, so sorry for mistakes.
How I can create this text?

And... How Can I convert this mod to the Zcmd:
Код:
if(!strcmp(cmd,"/changeplate",true))
{
new string[64];
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid,0xFFFFFFAA,"You are not authorized to use this command.");
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
if(cmdtext[idx++] != 32 || cmdtext[idx] == EOS)
return SendClientMessage(playerid,0xFFFFFFAA,"USAGE: /changeplate [newplate]");
format(string,sizeof(string),"%s",cmdtext[idx]);
return SetVehicleNumberPlate(GetPlayerVehicleID(playerid),string);
}
Код:
CMD:changeplate(playerid, params[])
{
new string[64];
if(!IsPlayerAdmin(playerid))
return SendClientMessage(playerid,0xFFFFFFAA,"You are not authorized to use this command.");
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid,0xFFFFFFAA,"You have to be inside a vehicle.");
if(cmdtext[idx++] != 32 || cmdtext[idx] == EOS)
return SendClientMessage(playerid,0xFFFFFFAA,"USAGE: /changeplate [newplate]");
format(string,sizeof(string),"%s",cmdtext[idx]);
return SetVehicleNumberPlate(GetPlayerVehicleID(playerid),string);
}
C:\Documents and Settings\pc\Pulpit\Kopia gp - new.pwn(11802) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\pc\Pulpit\Kopia gp - new.pwn(11802) : error 017: undefined symbol "idx"
So I changed the cmd for params, but so are mistakes...
Very Thanks for help

