02.06.2010, 11:20
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.
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.