10.06.2011, 07:23
(
Последний раз редактировалось BeEasy114; 10.06.2011 в 08:45.
Причина: SOLVED
)
I am working on a huge roleplay script and getting far i had already got this code to work and when i went to test it earlier today, it keeps giving me (SERVER: Unknown Command)s. I even got rid of the range requirements and everything and it still doesn't work, used multiple names to see if i do something wrong there no luck. Also, if i were to fix line 92 it would come up on all the string declaration lines, but i assume it's the same error.
I placed this code in OnPlayerCommand and i honestly have no idea what the problem is, has the size of string changed recently possibly or something?
NO COMPILE ERRORS!!!!
I placed this code in OnPlayerCommand and i honestly have no idea what the problem is, has the size of string changed recently possibly or something?
Quote:
if (strcmp("/dvbuy", cmdtext, true, 10) == 0){ new stringall[2000]; new string1[512] = "Admiral - $000,000\r\nBF 400 - $000,000\r\nBlade - $000,000\r\nBlista Compact - $000,000\r\nBobcat - $000,000\r\nBravura - $000,000\r\nBroadway - $000,000\r\nBuccaneer - $000,000\r\nBuffalo - $000,000\r\nBurrito - $000,000\r\nCadrona - $000,000\r\nCheetah - $000,000\r\nClover - $000,000\r\nClub - $000,000\r\nComet - $000,000\r\nElegant - $000,000\r\nElegy - $000,000\r\nEmperor - $000,000\r\n"; new string2[512] = "Esperanto - $10,000\r\nEuros - $000,000\r\nFaggio - $000,000\r\nFBI Rancher - $000,000\r\nFeltzer - $000,000\r\nFlash - $000,000\r\nFortune - $000,000\r\nFreeway - $000,000\r\nGreenwood - $000,000\r\nHotknife - $000,000\r\nHuntley - $000,000\r\nHustler - $000,000\r\nIntruder - $000,000\r\nJester - $000,000\r\nLandstalker - $000,000\r\nMajestic - $000,000\r\nManana - $000,000\r\nMerit - $000,000\r\nMesa - $000,000\r\nMoonbeam - $000,000\r\n"; new string3[512] = "Nebula - $000,000\r\nPCJ 600 - $000,000\r\nPicador - $000,000\r\nPolice Car - $000,000\r\nPolice Maverick - $000,000\r\nPolice Ranger - $000,000\r\nPony - $000,000\r\nPremier - $000,000\r\nPrevion - $000,000\r\nPrimo - $000,000\r\nRancher - $000,000\r\nRemington - $000,000\r\nRomero - $000,000\r\nSabre - $000,000\r\nSadler - $000,000\r\nSavanna - $000,000\r\nSentinel - $000,000\r\nSlamvan - $000,000\r\nSolair - $000,000\r\nSparrow - $000,000\r\n"; new string4[512] = "Stafford - $000,000\r\nStallion - $000,000\r\nStratum - $000,000\r\nStretch - $000,000\r\nSultan - $000,000\r\nSunrise - $000,000\r\nSwat Enforcer - $000,000\r\nTahoma - $000,000\r\nTampa - $000,000\r\nTaxi - $000,000\r\nTornado - $000,000\r\nTowtruck - $000,000\r\nUranus - $000,000\r\nVincent - $000,000\r\nVirgo - $000,000\r\nVoodoo - $000,000\r\nWashington - $000,000\r\nWayfarer - $000,000\r\nWillard - $000,000\r\nWindsor - $000,000\r\nYosemite - $000,000"; format(stringall,sizeof(stringall),"%s%s%s%s",stri ng1,string2,string3,string4); ShowPlayerDialog(playerid,DEALER_BUYCAR,DIALOG_STY LE_LIST,"Dealer Auction",stringall,"Buy","Cancel"); return 1; } |