Search Results
Quote:
Originally Posted by Knappen
I've been reading up a bit about files, the best way to do it is this. (Should've been kind of obvious to all of us I guess)
pawn Код:
stock LoadHo...
223
pawn Код:
HouseVar[i][HPickupText] = CreateDynamic3DTextLabel(string, COL_YELLOW, HouseVar[i][hExteriorX], HouseVar[i][hExteriorY], HouseVar[i][hExteriorZ]+0.5,30.0, .testlos = 1);
If anyone coul...
112
It doesn't let me create even 1 house
119
pawn Код:
stock LoadHouses(){Â Â new name[128], value[128];Â Â new FileName[128];Â Â for(new i = 0; i < MAX_HOUSES; i++)Â Â {Â Â Â Â format(FileName, sizeof(FileName), "Houses/House...
223
pawn Код:
CMD:createhouse(playerid, params[]){Â Â new Usage[128], string[128];Â Â if(sscanf(params, "s[18]", Usage))Â Â {Â Â Â Â if(PlayerVar[playerid][AdminLevel] >= 3)Â Â Â Â {Â...
119
Thanks, I have one error left now which is:
pawn Код:
error 035: argument type mismatch (argument 1)
CODE:
pawn Код:
if(!fexist(handle)){
251
Quote:
Originally Posted by newbienoob
"InteriorID" is a string?
Yes it is
251
pawn Код:
stock SaveHouse(i){Â Â new FileName[128];Â Â format(FileName, sizeof(FileName), "Houses/House_%d.ini", i);Â Â if(!fexist(FileName))Â Â {Â Â Â Â ERROR Line959INI_SetTag(FileNa...
251
Quote:
Originally Posted by zDivine
Change "INI_String" to "INI_Int"
Thanks, but I still have the error on line 124
EDIT: Nevermind, fixed!
142
Errors
pawn Код:
C:\Users\Aidan\Desktop\Gamemode from scratch\gamemodes\RP.pwn(124) : error 029: invalid expression, assumed zeroC:\Users\Aidan\Desktop\Gamemode from scratch\gamemodes\RP.pwn(945) ...
142
Quote:
Originally Posted by Blast3r
Could you show us the errors and your OnGameModeInIt function? You might be missing a return or something (usually when I'm missing a return it gives me...
176
What I mean is, if I put LoadHouses(); on ongamemodeinit, it causes 26 errors to occur. I tried that code but it didn't do much
176
So as the title says, I have a made a stock which loads all houses that have been made, it works fine with no errors, warnings whatsoever if I don't put it on ongamemodeinit, however if I do, I get a ...
176
Quote:
Originally Posted by Sithis
Have you defined your hIntX Y and Z as Float:hIntX ?
Ah, forgot to, thanks very much
194
I am having a problem with a GetPlayerPos I have, the warning I get is
pawn Code:
warning 213: tag mismatch
And the code is
pawn Code:
GetPlayerPos(playerid, PlayerVar[playerid][hIntX], PlayerVar[pl...
194
Quote:
Originally Posted by mrskull42
Remove your SpawnPlayer(playerid); tell me what happens.
I removed it - I went on the server, went off, turned the server off and on, went back on ...
185
I am working on a from-scratch-roleplay gamemode and it's gone good so far but when I log on, it saves the account data then log back on it kills me multiple times then comes up with 'stay within wor...
185
paste the onplayerrequestclass code on onplayerconnect
171