6 Errors, Not Sure Why?
#3

Quote:
Originally Posted by Kush
Посмотреть сообщение
Firstly, before you do anything.

pawn Код:
new string[1000];
That has left me stunned...

SAMP can't generate more that 128 characters input and output. So having a string size of 1000 is uncalled for.

Secondly, you've messed up somewhere (in which I can't seem to find ) with 'playeri' and 'd'. I assume you were attempting to call 'playerid'.
Oh really Kush ? You are wrong in both affirmations. First, SA:MP can generate more than 128 in DIALOG, actually is 1024 or more, I'm not sure.
Secondly, this line is too long
Код:
format(string, sizeof(string), " - Admin Level:%i - Money:%i - Bank:%i - AccentID:%i - JobID:%i - \n - FactionID:%i - Faction Rank:%i - License:%i - Cocaine Grams:%i - \n - Marijuana Grams:%i - Donater:%i - Donater Rank: %i - Watch:%i - \n - Phone:%i - Phone Number:%i - Cigars:%i - Lighter:%i - Mask:%i - \n",PlayerInfo[playerid][pAdminLevel],PlayerInfo[playerid][pMoney],PlayerInfo[playerid][pBank],PlayerInfo[playerid][pAccent],PlayerInfo[playerid][pJob],PlayerInfo[playerid][pFaction],PlayerInfo[playerid][pRank],PlayerInfo[playerid][pLicense],PlayerInfo[playerid][pCocaine],PlayerInfo[playerid][pMarijuana],PlayerInfo[playerid][pDonater],PlayerInfo[playerid][pDonaterPoints],PlayerInfo[playerid][pWatch],PlayerInfo[playerid][pPhone],PlayerInfo[playerid][pPhoneNumber],PlayerInfo[playerid][pCigars],PlayerInfo[playerid][pLighter],PlayerInfo[playerid][pMask]);
.

And this, can simply becomes:
PHP код:
format(stringsizeof(string), " - Admin Level:%i - Money:%i - Bank:%i - AccentID:%i - JobID:%i - \n \
- FactionID:%i - Faction Rank:%i - License:%i - Cocaine Grams:%i - \n - Marijuana Grams:%i - Donater:%i - Donater Rank: %i - Watch:%i - \n \
- Phone:%i - Phone Number:%i - Cigars:%i - Lighter:%i - Mask:%i - \n"
,
PlayerInfo[playerid][pAdminLevel], PlayerInfo[playerid][pMoney], PlayerInfo[playerid][pBank],
PlayerInfo[playerid][pAccent], PlayerInfo[playerid][pJob], PlayerInfo[playerid][pFaction],
PlayerInfo[playerid][pRank], PlayerInfo[playerid][pLicense], PlayerInfo[playerid][pCocaine],
PlayerInfo[playerid][pMarijuana], PlayerInfo[playerid][pDonater], PlayerInfo[playerid][pDonaterPoints],
PlayerInfo[playerid][pWatch], PlayerInfo[playerid][pPhone], PlayerInfo[playerid][pPhoneNumber],
PlayerInfo[playerid][pCigars], PlayerInfo[playerid][pLighter], PlayerInfo[playerid][pMask]); 
Reply


Messages In This Thread
[Solved]6 Errors, Not Sure Why? - by Dr - 23.07.2011, 18:38
Re: 6 Errors, Not Sure Why? - by Kush - 23.07.2011, 19:38
Re: 6 Errors, Not Sure Why? - by MoroDan - 23.07.2011, 20:27
Re: 6 Errors, Not Sure Why? - by Kush - 23.07.2011, 20:43
Re: 6 Errors, Not Sure Why? - by MoroDan - 23.07.2011, 20:45
Re: 6 Errors, Not Sure Why? - by Kush - 23.07.2011, 20:47
Re: 6 Errors, Not Sure Why? - by MoroDan - 23.07.2011, 20:51
Re: 6 Errors, Not Sure Why? - by Dr - 24.07.2011, 01:45

Forum Jump:


Users browsing this thread: 1 Guest(s)