Gang Creation - 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: Gang Creation (
/showthread.php?tid=152075)
Gang Creation -
RichyB - 02.06.2010
Hey, I'm trying to create a script where people can create gangs.
I tried using DCMD to create the /creategang script but it fails.
So I tried the normal way!
if(strcmp(cmd, "/creategang", true) == 0)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new tmpp[256];
new Name[256];
tmpp = strtok(cmdtext, idx);
if(IsPlayerConnected(playerid))
{
CreatePlayerGang(playerid, Name);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
}
return 1;
}
This comes up with errors when Trying to Create the Gang, how can I set it so it doesnt?
So like I do /CreateGang Grove Street and it sends the name to CreatePlayerGang(playerid, Name); for creating the gang files.