Search Results
Your absolutely right! I'm sorry i was so blind about that, well thats one hurdle crossed thanks to Simon
16,691
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...
16,691
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 ){#...
16,691
Automatic 1337 speak:
Global Declarations:
pawn Код:
new bool:leet[MAX_PLAYERS];
OnPlayerConnect:
pawn Код:
public OnPlayerConnect(playerid){ leet[playerid] = false;}
OnPlayerText:
...
16,691
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...
16,691
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...
16,691
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;
...
16,691
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...
16,691
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...
16,691
OnPlayerEnterInterior and OnPlayerLeaveInterior
Code:
new plastint[MAX_PLAYERS];
public InteriorTimer(){
for(new i=0;i<MAX_PLAYERS;i++){
if(IsPlayerConnected(i)){
if(IsPlayerSpawned(i)){
...
16,691
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...
16,691
Could you give an example of how it could be used? For instance in a str2bin(string[])? I think this could be really useful
16,691
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...
16,691
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){
...
16,691
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 ...
947
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...
581
yom could you please use GetInteriorName for that interior and tell me the name of the interior it gets confused with?
581
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 ...
581
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...
581