Search Results
Your absolutely right! I'm sorry i was so blind about that, well thats one hurdle crossed thanks to Simon
37,882
Using that throws a ton of errors my way pawn Код: new bool:t = true;    If t == true Then        Dim Test As Integer        Test = 3;    Else      // Do Something else    End I...
37,882
A taste of modifying Pawn to be more like VB, for the VB programmers out there who find it hard to adjust: Using defines we can change the way if() works pawn Код: #define If if(#define Then ){#...
37,882
Corrected, thanks for noticing
37,882
Automatic 1337 speak: Global Declarations: pawn Код: new bool:leet[MAX_PLAYERS]; OnPlayerConnect: pawn Код: public OnPlayerConnect(playerid){    leet[playerid] = false;} OnPlayerText: ...
37,882
Blinking Radar Player Icons This is just a simple script but can be very useful for "highlighting" a player, for instance with a bounty of more than 500,000 Global Variables: pawn Код: new bool...
37,882
Well i learnt this trick from PhyscoGod, it involves chucking your own code into native functions, something that GetPlayerSkin could use for example: Instead of: Code: stock AddPlayerClass2(skini...
37,882
Pixels IsPlayerDisconnected won't work, you always need to return a value, like this would be a working version: Code: IsPlayerDisconnected(playerid){ if(IsPlayerConnected(playerid)) return false; ...
37,882
Code: Words(string[]){ new idx,words; while(strlen(strtok(string,idx))) words++; return words; } public OnPlayerCommandText(playerid,cmdtext[]){ for(new i=0,j=Words(cmdtext),idx;i<j;i++){ n...
37,882
Well... IsPlayerSpawned is in this very topic GetPlayerInteriorID and IsPlayerInAnyInterior are S:Interior functions and the whole point of the code is to give you the callbacks for OnPlayerEnterInt...
37,882
OnPlayerEnterInterior and OnPlayerLeaveInterior Code: new plastint[MAX_PLAYERS]; public InteriorTimer(){ for(new i=0;i<MAX_PLAYERS;i++){ if(IsPlayerConnected(i)){ if(IsPlayerSpawned(i)){ ...
37,882
Thanks for that ******, clearly i thought it was something that it wasn't however still useful and boylett could you not just check the state? Code: IsPlayerSpawned(playerid){ new statex = GetPlay...
37,882
Could you give an example of how it could be used? For instance in a str2bin(string[])? I think this could be really useful
37,882
Quote: That won't work, you're assuming that all players are consecutive, which is rarely the case, you could have 10 players max, but only players 1, 4, 7 and 9 connected, which would mak...
37,882
Well this is a small thing but i find it a bit more efficient, instead of using for(new i=0;i<MAX_PLAYERS I use this: Code: new maxplayers; //Global Variable public OnPlayerConnect(playerid){ ...
37,882
no because if you did it correctly the compiler would be able to find the include, hence you havent put dutils.inc into your pawno/include/ i mean really this is basic, if you can't do this then you ...
3,515
Well i'm not sure how its confusing Well-Stacked Pizza Co. With Ammunation Ammunation (minz,maxz):267.7444,318.3778 Well Stacked Pizza (minz,maxz): 361.2697,382.0142 So even the first area check wo...
1,003
yom could you please use GetInteriorName for that interior and tell me the name of the interior it gets confused with?
1,003
OK its like this In GTA:SA 2 or more interiors could have the same interior number, it just points to what the player can see, sort of changes the GTA:SA universe, so the interior number only refers ...
1,003
SInterior 2.0By Sacky Download 2.0 What is it: Basically a database of almost interior in SA:MP including the interior ID's, the maximum and minimum x,y,z values, the spawn x,y,z and angle values, a...
1,003