[HELP]Script Errors,Newbie in scripting
#1

Quote:

COMMAND:creategroup(playerid, params[])
{
new string[128];
if(PlayerInfo[playerid][power] >= 12 || PlayerInfo[playerid][helper]>=31337)
{
new iPlayer, iRank[64];
if( sscanf ( params, "us", iPlayer, iRank)) return SCP(playerid, "[PlayerID/PartOfName] [Group Name / No space !]");
if(!IsPlayerConnected(iPlayer)) return SendClientError(playerid, PLAYER_NOT_FOUND);
new groupid = ReturnNextUnusedGroup();
new Float: X = 0.0, Float: Y = 0.0, Float: Z = 0.0;
format(string, sizeof(string), "Groups/%d.ini", groupid);
dini_Create(string);
dini_IntSet(string,"ID",groupid);
dini_Set(string, "Name", iRank);
dini_Set(string, "Leader", PlayerName(iPlayer));
dini_FloatSet(string,"floatx",X);
dini_FloatSet(string,"floaty",Y);
dini_FloatSet(string,"floatz",Z);
PlayerInfo[playerid][pgroupid] = groupid;
return 1;
}
return 1;
}

How can i do it with space,becuase when i use now script it crashes the server please help me :/
[Group Name / No space !]
Reply


Messages In This Thread
[HELP]Script Errors,Newbie in scripting - by LondonRP - 24.08.2016, 15:32
Re: [HELP]Script Errors,Newbie in scripting - by SyS - 24.08.2016, 15:38
Re: [HELP]Script Errors,Newbie in scripting - by Konstantinos - 24.08.2016, 15:40
Re: [HELP]Script Errors,Newbie in scripting - by LondonRP - 24.08.2016, 15:41
Re: [HELP]Script Errors,Newbie in scripting - by LondonRP - 24.08.2016, 15:44
Re: [HELP]Script Errors,Newbie in scripting - by SyS - 24.08.2016, 15:49
Re: [HELP]Script Errors,Newbie in scripting - by LondonRP - 24.08.2016, 15:58
Re: [HELP]Script Errors,Newbie in scripting - by SyS - 24.08.2016, 16:08
Re: [HELP]Script Errors,Newbie in scripting - by Stinged - 24.08.2016, 16:12
Re: [HELP]Script Errors,Newbie in scripting - by LondonRP - 10.02.2017, 18:12

Forum Jump:


Users browsing this thread: 1 Guest(s)