10.04.2014, 21:07
Iam trying to create a command that shows all the basic info of the player, please help me iam very new to this scripting "thing" if you could teach me the ways of a scripter i would be very thankful!
any way what i got is the folowing:
I already created a organization called PSP, and it's id is 400, and what i wanted was to associate in some way that number to a word, so that when the whole message shows it doenst show [Organization]: 400, for example, what i want is [Organization]: PSP......
if some one has any type of advice please, tell me! i am open to any opinion or advice about mistakes or ways to improve my coding abilities!
Any way, Thanks
Best Regards Sagoza
any way what i got is the folowing:
Код:
CMD:id(playerid)
{
new idvar[128];
new org = (GetPVarInt(playerid, "porgani"));
switch (org)
{
case 400:
{
"PSP";
}
case 401:
{
"Taliban";
}
}
format(idvar, sizeof(idvar), "[Organization]: %s [Rank in Organization]: %s [Job]: ", org);
SendClientMessage(playerid, -1, idvar);
return 1;
}
if some one has any type of advice please, tell me! i am open to any opinion or advice about mistakes or ways to improve my coding abilities!
Any way, Thanks
Best Regards Sagoza

