SA-MP Forums Archive
How to create this text - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to create this text (/showthread.php?tid=272720)



How to create this text - Crazzel - 29.07.2011

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:
Код:
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);
}
I changed this code for Zcmd:
Код:
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);
}
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


Respuesta: How to create this text - Alex_Obando - 29.07.2011

1st: https://sampwiki.blast.hk/wiki/Create3DTextLabel
2nd: https://sampforum.blast.hk/showthread.php?tid=271043


Re: How to create this text - Crazzel - 29.07.2011

Thanks